﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master"  AutoEventWireup="true" CodeFile="MessageSrhForm.aspx.cs" Inherits="App_Input_MessageSrhForm"  Title="个人待办一览"%>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script type="text/javascript" >
 function popupRead(messageId){

        window.open('../Input/MessageReadForm.aspx?MESSAGE_ID='+messageId,'MessageReadForm','scrollbars,resizable,height=550px,width=550px')
    }
    function popupSend(){

        window.open('../Input/MessageUpdForm.aspx','MessageUpdForm','scrollbars,resizable,height=550px,width=550px')
    }
</script>
    <div>
        <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" Visible="False">
            <cc1:CheckDateAttribute ControlToValidator="txtBeginDate" DataFormat="yyyy/mm/dd" Code="E0037">
                <cc1:ComAbsParamsAttribute Parameter="开始日期" />
            </cc1:CheckDateAttribute>
            <cc1:CheckDateAttribute ControlToValidator="txtEndDate" DataFormat="yyyy/mm/dd" Code="E0037">
                <cc1:ComAbsParamsAttribute Parameter="结束日期" />
            </cc1:CheckDateAttribute>
            <cc1:CheckDateRangeAttribute ControlToValidator1="txtBeginDate" ControlToValidator2="txtEndDate"
                Code="E0378">
                <cc1:ComAbsParamsAttribute Parameter="开始日期" />
                <cc1:ComAbsParamsAttribute Parameter="结束日期" />
            </cc1:CheckDateRangeAttribute>
        </cc1:ComValidator>
    <table  class="table_border_line" style="background:ffffff">
        <!--<tr>
            <td style="width: 103px; height: 53px">
            </td>
            <td style="width: 111px; height: 53px">
                消息来源</td>
            <td style="height: 53px">
                <asp:DropDownList ID="DropDownList2" runat="server" Width="109px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 103px; height: 53px">
            </td>
            <td style="width: 111px; height: 53px">
                消息类型</td>
            <td style="height: 53px">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="109px">
                </asp:DropDownList></td>
        </tr>-->
        <tr>
            <td style="width: 103px; height: 53px">
            </td>
            <td style="height: 53px; width: 111px;">
            发布日期
            </td>
            <td style="height: 53px">
                <asp:TextBox ID="txtBeginDate" runat="server" Width="108px" MaxLength="10" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                ~
                <asp:TextBox ID="txtEndDate" runat="server" Width="108px" MaxLength="10" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="1" style="width: 103px; height: 50px">
            </td>
            <td colspan="2" style="height: 50px" align="center">
            <input type="button" id="btnNew"  onclick="popupSend()" value="新 建" style="width: 83px" class="button"/>
   &nbsp; &nbsp;<asp:Button ID="btnSrh" runat="server" Text=" 检 索 " Width="83px" CssClass="button" OnClick="btnSrh_Click" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="height: 50px">
                &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="GridView_table" DataKeyNames="MessageId"
                    OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" BorderStyle="Solid">
                    <Columns>
                        <asp:BoundField  HeaderText="主题">
                            <ItemStyle CssClass="GridView_item_left" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EmployeeId" HeaderText="消息来源">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SendDate" HeaderText="发布日期" HtmlEncode="False" DataFormatString="{0:yyyy/MM/dd}">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField  DataField="Cnt" HeaderText="阅读次数">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="阅读">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="选择" ShowHeader="False">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="60px" />
                            <ItemTemplate>
                                 <asp:HyperLink ID="search" ImageUrl="~/images/info.gif" runat="server" NavigateUrl=""
                                                                                  href="#"> </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                       
                    </Columns>
                    <PagerStyle HorizontalAlign="Right" />
                </asp:GridView>
            </td>
        </tr>
        
    </table>
    </div>
</asp:Content> 
